package com.ldy.gen.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 社区消息评论表
 * </p>
 *
 * @author ldy
 * @since 2023-09-29 15:02:29
 */
@Getter
@Setter
@TableName("community_comment")
@ApiModel(value = "CommunityComment对象", description = "社区消息评论表")
public class CommunityComment implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("社区消息id")
    @TableField("community_id")
    private Long communityId;

    @ApiModelProperty("用户id")
    @TableField("user_id")
    private Long userId;

    @ApiModelProperty("头像地址")
    @TableField("avatar_url")
    private String avatarUrl;

    @ApiModelProperty("用户名")
    @TableField("username")
    private String username;

    @ApiModelProperty("父级评论id")
    @TableField("parent_id")
    private Long parentId;

    @ApiModelProperty("评论内容")
    @TableField("content")
    private String content;

    @ApiModelProperty("点赞数")
    @TableField("like_count")
    private Integer likeCount;

    @ApiModelProperty("是否启用，1表示启用，0表示禁用")
    @TableField("enabled")
    private Boolean enabled;

    @ApiModelProperty("数据创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty("数据最后修改时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

    @ApiModelProperty("数据创建者")
    @TableField("creator")
    private String creator;

    @ApiModelProperty("数据更新者")
    @TableField("updater")
    private String updater;


}
